<div class="doc-content">



<header class="api-profile-header" >
  <h2 class="md-display-1" >{{currentDoc.name}} API Documentation</h2>
  
  

</header>



<div layout="row" class="api-options-bar with-icon"></div>


<div class="api-profile-description">
  <p>Provider to configure the <code>$mdTheming</code> service.</p>

</div>


<div>
  

  



  

  
<section class="api-section">
  <h2>Methods</h2>
  <br/>
  <ul class="methods">
    <li id="setNonce">
      <h3 class="method-function-syntax">
        <code class="method-function-syntax">$mdThemingProvider.setNonce(nonceValue);
</code>
      </h3>
      <div class="service-desc"></div>

      <div class="method-param-table">

      
      
<table class="md-api-table">
  <thead>
    <tr>
      <th>Parameter</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
  
  
    
      <tr class="api-params-item">
        <td style="white-space: nowrap;">
          <b>* nonceValue</b>
          
          <span hide show-sm>
<code class="api-type label type-hint type-hint-string">string</code></span>
        </td>
        <td style="white-space: nowrap;">
<code class="api-type label type-hint type-hint-string">string</code></td>
        <td class="description">
          <p>The nonce to be added as an attribute to the theme style tags.
Setting a value allows the use CSP policy without using the unsafe-inline directive.</p>

          
        </td>
      </tr>
    
  
  
    
  

  </tbody>
</table>

      

      

      

      </div>

    </li>
    
    <li id="setDefaultTheme">
      <h3 class="method-function-syntax">
        <code class="method-function-syntax">$mdThemingProvider.setDefaultTheme(themeName);
</code>
      </h3>
      <div class="service-desc"></div>

      <div class="method-param-table">

      
      
<table class="md-api-table">
  <thead>
    <tr>
      <th>Parameter</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
  
  
    
      <tr class="api-params-item">
        <td style="white-space: nowrap;">
          <b>* themeName</b>
          
          <span hide show-sm>
<code class="api-type label type-hint type-hint-string">string</code></span>
        </td>
        <td style="white-space: nowrap;">
<code class="api-type label type-hint type-hint-string">string</code></td>
        <td class="description">
          <p>Default theme name to be applied to elements. Default value is <code>default</code>.</p>

          
        </td>
      </tr>
    
  
  
    
  

  </tbody>
</table>

      

      

      

      </div>

    </li>
    
    <li id="alwaysWatchTheme">
      <h3 class="method-function-syntax">
        <code class="method-function-syntax">$mdThemingProvider.alwaysWatchTheme(watch);
</code>
      </h3>
      <div class="service-desc"></div>

      <div class="method-param-table">

      
      
<table class="md-api-table">
  <thead>
    <tr>
      <th>Parameter</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
  
  
    
      <tr class="api-params-item">
        <td style="white-space: nowrap;">
          <b>* watch</b>
          
          <span hide show-sm>
<code class="api-type label type-hint type-hint-boolean">boolean</code></span>
        </td>
        <td style="white-space: nowrap;">
<code class="api-type label type-hint type-hint-boolean">boolean</code></td>
        <td class="description">
          <p>Whether or not to always watch themes for changes and re-apply
classes when they change. Default is <code>false</code>. Enabling can reduce performance.</p>

          
        </td>
      </tr>
    
  
  
    
  

  </tbody>
</table>

      

      

      

      </div>

    </li>
    </ul>
</section>
  
  



  
</div>


</div>
